/***************************************************************************
 *   Copyright (C) 2007 by Warren Kenny   				   *
 *   warren.kenny@gmail.com  					           *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include <gsConfiguration/gsConfigManager.h>

gsConfigManagerImpl::gsConfigManagerImpl() :
m_configFilePath( APPLICATION_CONFIGURATION_FILE_PATH ),
m_argumentCount( 0 ),
m_arguments( GS_NULL )
{
}

void gsConfigManagerImpl::setArguments( const gsInt argumentCount, const gsChar** arguments )
{
	m_argumentCount = argumentCount;
	m_arguments = arguments;
}
	
void gsConfigManagerImpl::setFilePath( const gsString configFilePath )
{
	m_configFilePath = configFilePath;
}
	
gsBool gsConfigManagerImpl::getConfiguration( const gsString configurationName, 
					      gsContainer<gsString>& configurationContainer )
{
	
}

gsConfigManagerImpl::~gsConfigManagerImpl()
{
	
}

gsConfigManagerImpl* gsConfigManager::m_manager = GS_NULL;

gsConfigManagerImpl* gsConfigManager::getInstance()
{
	if( m_manager )
	{
		return m_manager;
	}
	else
	{
		m_manager = new gsConfigManagerImpl();
		
		return m_manager;
	}
}

gsConfigManager::~gsConfigManager()
{
	if( m_manager )
	{
		delete m_manager;
	}
}


